import { fetch } from '../util/http.js';

/**
 * 获取留言列表数据
*/
export function getLeavingData(data){
  return fetch({
    url:'guestbook/search',
    method:'post',
    data:data
  });
}

/**
 * 删除留言
*/
export function delLeavingData(data){
  return fetch({
    url:'guestbook/'+data.id,
    method:'DELETE'
  });
}